package com.oamicnet.serviceone.api.teacher;

import com.oamicnet.serviceone.api.teacher.vo.TeacherVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("service-one")
public interface TeacherApi {
    String PREFIX = "/teacher";

    @GetMapping(PREFIX + "/{id}")
    TeacherVO getTeacherById(@PathVariable("id") Long id);

    @PostMapping(PREFIX + "/save")
    void saveTeacher(@RequestBody TeacherVO teacher);

    @PutMapping(PREFIX + "/update")
    void updateTeacher(@RequestBody TeacherVO teacher);
}
